package redisServer

import (
	"github.com/go-redis/redis"
	"time"
	"utils"
)

const EX = 24 * time.Hour

func GetConnect() *redis.Client {
	client := redis.NewClient(&redis.Options{
		Addr:     "localhost:6379",
		Password: "", // no password set
		DB:       0,  // use default DB
	})
	_, err := client.Ping().Result()
	utils.CheckRedisError(err)
	return client
}
